Skip to content

feat(MediaMtx.Cli): support Gitee download source - #1404

Merged
ArgoZhang merged 2 commits into
masterfrom
feat-cli
Dec 3, 2026
Merged

ArgoZhang merged 2 commits into
masterfrom
feat-cli

Conversation

@ArgoZhang

@ArgoZhang ArgoZhang commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Link issues

fixes #1403

Summary By Copilot

  • Add gitee.com as a --source option, mapping to the LongbowEnterprise/mediamtx release metadata at https://gitee.com/api/v5/repos/LongbowEnterprise/mediamtx and the Gitee release download base.
  • Extend --source validation, help text and examples; update the package description and readme to list Gitee and note the shared cache and no cross-source fallback behavior.
  • Verified downloads for all six supported RIDs from Gitee; every archive's SHA-256 matches the official GitHub checksums.sha256.

Regression?

  • Yes
  • No

This is an additive source option. The default github.com source and the existing gitcode.com source are unchanged.

Risk

  • High
  • Medium
  • Low

The change only extends source selection and documentation. Gitee releases are verified through the existing checksums.sha256 flow, and the v1.22.0 release now includes the checksum attachment.

Verification

  • Manual (required)

  • Automated

  • dotnet build tools/BootstrapBlazor.MediaMtx.Cli -f net11.0 — passed (0 warnings, 0 errors).

  • bb-mediamtx --download --rid win-x64 --source gitee.com — downloaded 29,050,842 bytes, SHA-256 verified, tools extracted.

  • bb-mediamtx --download --rid all --source gitee.com — all six RIDs prepared; every cached ArchiveSha256 matches the official checksums.sha256.

  • bb-mediamtx --copy --rid win-x64 --output <temp> — copied the executable and license from the verified cache.

  • bb-mediamtx --help lists gitee.com; unsupported sources are rejected with the updated message.

  • No CLI test project exists, so no automated tests were run.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

Reviewed the package description update; no new package files or tool versions were introduced.

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

The CLI readme is updated. No demo change is needed for this tool option, and the branch includes the latest origin/master.

Summary by Sourcery

Allow users to select Gitee when downloading MediaMTX with the CLI.

New Features:

  • Add Gitee as a supported MediaMTX download source.

Documentation:

  • Update the CLI README with Gitee support, source behavior, and a usage example.

Chores:

  • Update the CLI package description to include Gitee.

@sourcery-ai

sourcery-ai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

API

Add Gitee as a supported download source and extend the CLI's source validation and user-facing help to accept it.

  • tools/BootstrapBlazor.MediaMtx.Cli/MediaMtxInstaller.cs L24-26
  • tools/BootstrapBlazor.MediaMtx.Cli/Program.cs L20, L43, L85-90

Configuration

Review the package description change accompanying support for the new download source.

  • tools/BootstrapBlazor.MediaMtx.Cli/BootstrapBlazor.MediaMtx.Cli.csproj L4, L10

Documentation

Update the CLI README with Gitee source behavior, instructions, and examples.

  • tools/BootstrapBlazor.MediaMtx.Cli/readme.md L74-78 (+3 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@bb-auto bb-auto Bot added the enhancement New feature or request label Dec 3, 2026
@bb-auto bb-auto Bot added this to the v11.0.0 milestone Dec 3, 2026
bb-auto[bot]
bb-auto Bot previously approved these changes Dec 3, 2026

@bb-auto bb-auto Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved by bb-auto

@bb-auto bb-auto Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved by bb-auto

@ArgoZhang
ArgoZhang merged commit 98fe5ef into master Dec 3, 2026
3 checks passed
@ArgoZhang
ArgoZhang deleted the feat-cli branch December 3, 2026 04:46
@sourcery-ai

sourcery-ai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 657abae

#1403 feat(MediaMtx.Cli): support Gitee download source · 3 of 3 met

# Requirement Status Notes
1 Add gitee.com using the LongbowEnterprise/mediamtx release API and Gitee release assets. ✅ Met The installer maps gitee.com to the requested API and release-download base.
2 Keep the same supported RIDs and shared cache, with no forced download or automatic fallback between sources. ✅ Met The existing RID list and source-independent cache remain unchanged; selecting a source alone does not enable downloading, and the installer uses only the selected source.
3 Update CLI help, argument validation, package description, and readme. ✅ Met The help and validation accept Gitee, and the package description and readme now mention it.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(MediaMtx.Cli): support Gitee download source

1 participant